#!/bin/bash

cpp -nostdinc -I/home/nie/OpenHarmony-4.0/out/KERNEL_OBJ/khdvk_3566b/kernel/include -x assembler-with-cpp tspi-rk3566-user-v10-linux.dts > tmp_dts.dts
cat tmp_dts.dts  | grep -v ^\# > rk3568-toybrick-x0-linux.dts
dtc -I dts -O dtb -o test.dtb rk3568-toybrick-x0-linux.dts
#rm -v test.dtb
rm -v tmp_dts.dts
#cp -v rk3566-rp-kh.dts /home/nie/OpenHarmony-4.0/device/board/kaihong/khdvk_3566b/kernel/rk3566-rp-kh.dts
#cp -v rk3566-rp-kh.dts /home/nie/OpenHarmony-4.0/out/KERNEL_OBJ/khdvk_3566b/kernel/arch/arm64/boot/dts/rockchip/

#cp -v rk3568-toybrick-x0-linux.dts  /home/nie/OpenHarmony-4.0/out/kernel/OBJ/linux-5.10/arch/arm64/boot/dts/rockchip/

